package com.njtoyo.taxi.admin.rest.presenter.marketing.coupon;

import com.njtoyo.taxi.admin.mapper.master.enums.CouponCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.CouponScope;
import com.njtoyo.taxi.admin.mapper.master.enums.CouponUsageCondition;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CouponHotListPresenter {

    private Long id;

    @ApiModelProperty(value = "0:mix,1:reduction,2:fullreduction,3:discount")
    private CouponCategory category;

    @ApiModelProperty(value = "适用范围：0:mix,1:realtime,2:appointment")
    private CouponScope scope;

    private Double digit;

    @ApiModelProperty(value = "优惠券类型：0:reduction(减免),1:discount(折扣)")
    private Boolean discountType;

    @ApiModelProperty(value = "折扣或减免金额")
    private Double discountDigit;

    @ApiModelProperty(value = "使用条件(0:FULL，1:MAX)")
    private CouponUsageCondition usageCondition;

    @ApiModelProperty(value = "使用限制")
    private String usageLimit;

    @ApiModelProperty(value = "是否使用")
    private Boolean hadUsed;

    @ApiModelProperty(value = "实际减免金额")
    private BigDecimal actualDiscount;

    @ApiModelProperty(value = "使用时间")
    private Long usedTimestamp;

    @ApiModelProperty(value = "创建时间")
    private Long grantedTimestamp;

    @ApiModelProperty(value = "开始时间")
    private Date startedAt;

    @ApiModelProperty(value = "结束时间")
    private Date endedAt;

    private Date createdAt;

}
